<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<jsp:directive.page import="com.anhry.app.safety.util.Util"/>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
  <head>
  	<base href="<%=basePath%>"/>
    <title>企业汇总</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="<%=basePath+Util.SKIN%>/css/right.css">
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="<%=path%>/js/table_span.js"></script>
	<style type="text/css">
		.hideclass{display:none;}
	</style>
	<script type="text/javascript">
		function funChange(v){	//	table or charts
	 		if(v=="1"){
				$("#hid").addClass("hideClass");
				$("#accidentTj").removeClass("hideClass");
			}else if(v=="2"){
	    		$("#accidentTj").addClass("hideClass");
	 			$("#hid").removeClass("hideClass");
				document.form1.target="show";
				document.form1.submit();
			}
  		}
		
	</script>
  </head>
  <body>
	<div class="body-box">
			<div class="map">
				<div class="map_con">
					<b>当前位置：</b> 统计分析 &gt; 自查自报 &gt; 隐患数统计 &gt; ${tjName }
				</div>
			</div>
		<div id="container">	
			<div class="top_search">
				<fieldset>
				<legend>统计条件</legend>
				<!-- 如果不是按月份进行总数统计,则显示月份的搜索条件 -->
				<s:if test="%{cType != 5}">
					<form action="<%=basePath%>/tjfx/zczb_yhTj.action" name="form" method="post">
						<label style="margin-left: 8px;width:50px;">年 份：</label><s:select list="yearList" listKey="id" listValue="yearName" name="cYear" value="%{cYear}" theme="simple"></s:select>
						<label style="margin-left: 8px">月 份：</lable><s:select list="#{1:'1',2:'2',3:'3',4:'4',5:'5',6:'6',7:'7',8:'8',9:'9',10:'10',11:'11',12:'12' }" name="cMonth" value="%{cMonth}"  theme="simple"></s:select>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="hidden" name="cType" value="${cType }">
						<input type="submit" value="搜 索" class="link_input">
					</form>
				</s:if>
					<form action="<%=basePath%>/FusionCharts/RunmaxChartReport1.jsp?strWidth=650" target="show" name="form1" method="post">
						<input type="radio" name="rad1"  value="1" checked="checked" onclick="funChange(this.value);">表格展示
						<input type="radio" name="rad1" value="2" onclick="funChange(this.value);">图形展示&nbsp;&nbsp;
						<input type="hidden" name="caption" value="${chartbean.caption }"/>
						<input type="hidden" name="xAxisName" value="${chartbean.x_axisName }"/>
						<input type="hidden" name="yAxisName" value="${chartbean.y_axisName }"/>
						<input type="hidden" name="exportFileName" value="${chartbean.exportFileName }"/>
						<input type="hidden" id="strXml" name="strXml" value="${xmlString }"/>
					</form>
				</fieldset>
			</div>	
			<div id="accidentTj">
				<table cellspacing="0" width="100px" class="mytable" id="mytable">
					<tbody>
						<tr class="fixedHeaderTr" height="34">
							<th width="19%" rowspan="2">${titleName }</th>
							<th width="27%" colspan="3">一般隐患</th>
							<th width="27%" colspan="3">重大隐患</th>
							<th width="27%" colspan="3">合计</th>
						</tr>
						<tr class="fixedHeaderTr" height="34">
							<th>上报隐患数</th>
							<th>隐患整改数</th>
							<th>隐患整改率</th>
							<th>上报隐患数</th>
							<th>隐患整改数</th>
							<th>隐患整改率</th>
							<th>上报隐患数</th>
							<th>隐患整改数</th>
							<th>隐患整改率</th>
						</tr>
						<s:iterator value="htmlList" id="obj" status="x">
							<tr align="center" height="34">
								<td>${obj[1] }</td>
								<td>${obj[2] }</td>
								<td>${obj[3] }</td>
								<td>${obj[4] }</td>
								<td>${obj[5] }</td>
								<td>${obj[6] }</td>
								<td>${obj[7] }</td>
								<td>${obj[8] }</td>
								<td>${obj[9] }</td>
								<td>${obj[10] }</td>
							</tr>
						</s:iterator>
						<tr>
						<td colspan="10">
							<form target="_blank" method="post" action="<%=basePath%>/tjfx/zczb_yhTj.action?cType=${cType}&exportExcelFlag=1&cYear=${cYear}&cMonth=${cMonth}">
								<input type="submit" value="导出Excel" class="link_input"><br/>
							</form>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	<iframe id="hid" src="" name="show" marginWidth=0 marginHeight=0  frameBorder=0 width=100% scrolling=no height=5 onload="this.height=this.contentWindow.document.body.scrollHeight"></iframe>
  </div>		    
  </body>
</html>
